﻿<!--
Project: SpeechTurtle (http://SpeechTurtle.codeplex.com)
Filename: SpeechGrammar_en.xml
Version: 20150910
-->

<grammar
  xmlns="http://www.w3.org/2001/06/grammar"
  tag-format="semantics/1.0"
  version="1.0"
  root="rootRule"
  xml:lang="en"
  >

  <!--
    Note: System.Speech doesn't support tag-format="semantics/1.0-literals" (Microsoft.Speech does instead),
    so using tag-format="semantics/1.0" and instead of <tag>x</tag> using <tag>out="x"</tag>
  -->

  <rule id="rootRule">
    <one-of>

      <item>
        <tag>out="CLOSE"</tag>
        <one-of>
          <item> close </item>
          <item> exit </item>
        </one-of>
      </item>

      <item>
        <tag>out="FORWARD"</tag>
        <one-of>
          <item> forward </item>
          <item> forwards </item>
          <item> straight </item>
        </one-of>
      </item>

      <item>
        <tag>out="BACK"</tag>
        <one-of>
          <item> back </item>
          <item> backward </item>
          <item> backwards </item>
        </one-of>
      </item>

      <item>
        <tag>out="LEFT"</tag>
        <one-of>
          <item> turn left </item>
          <item> left </item>
        </one-of>
      </item>

      <item>
        <tag>out="RIGHT"</tag>
        <one-of>
          <item> turn right </item>
          <item> right </item>
        </one-of>
      </item>

      <item>
        <tag>out="PENDOWN"</tag>
        <one-of>
          <item> pen down </item>
          <item> start drawing </item>
          <item> draw </item>
        </one-of>
      </item>

      <item>
        <tag>out="PENUP"</tag>
        <one-of>
          <item> pen up </item>
          <item> stop drawing </item>
          <item> don't draw </item>
          <item> do not draw </item>
        </one-of>
      </item>

      <item>
        <tag>out="BIGGER"</tag>
        <one-of>
          <item> bigger </item>
          <item> enlarge </item>
        </one-of>
      </item>

      <item>
        <tag>out="SMALLER"</tag>
        <one-of>
          <item> smaller </item>
          <item> shrink </item>
        </one-of>
      </item>

      <item>
        <tag>out="COLORS"</tag>
        <one-of>
          <item> colors </item>
          <item> color </item>
        </one-of>
      </item>

    </one-of>
  </rule>
</grammar>